cmake_minimum_required(VERSION 3.5)

project(myapp VERSION 1.0.0)

# 头文件路径
include_directories(../include ../lib)

# 库文件路径
link_directories(../lib)

link_libraries(-lm)

# 源文件
file(GLOB MYAPP_SRCS "*.c")

# 编译目标
add_executable(${PROJECT_NAME} ${MYAPP_SRCS})

# 依赖的动态库
target_link_libraries(${PROJECT_NAME} mylib)